<?php 
/**
 * 首页图片的model
 * @author Administrator
 *
 */
class SyimgModel extends Model
{
	//设置表名
	protected $trueTableName = 'cmp_syimg';
	
	//设置主键
	protected  $key = 'sy_id';
	
	
	
	public function getCardById($id)
	{
	
		//字段
		$field = array(
	
				'*',

		);
	
		//条件
		$where = $this->key.'='.$id;
	
		$result = $this->field($field)->where($where)->find();
	
		return $result;
	
	}
}


?>